package com.mjh.zhujianju.service.party;

import com.livew.framework.base.service.BaseService;
import com.mjh.zhujianju.model.party.BuildingEventUsersEO;
import com.mjh.zhujianju.vo.party.BuildingEventUsersVO;

import java.util.List;
import java.util.Map;

/**
 * @author liuyang
 * @Description: 活动参与人员
 * @date 2018/8/16 23:10
 */
public interface BuildingEventUsersService extends BaseService<BuildingEventUsersEO> {

    /**
     * 根据活动id查询
     * @param list
     * @return
     */
    List<BuildingEventUsersVO> queryBuildingEventUsersVOByEventIds(List<Long> list);

    /**
     * 活动报名
     * @param buildingEventUsersEO
     * @return
     */
    String addJoinEvent(BuildingEventUsersEO buildingEventUsersEO);

    Map<Long, Long> getMapTopOne(List<Long> ids);


    List<BuildingEventUsersEO> selectPagination(BuildingEventUsersEO buildingEventUsersEO);

    /**
     * 根据用户id查询活动
     * @param userId
     * @return
     */
    List<BuildingEventUsersEO> queryEventUsersEOById(Long userId);
}
